package com.dlz.systemshop.mapper;


import com.dlz.systemshop.pojo.Category;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryMapper {
    @Select("SELECT * FROM `vueshop_category`")
    List<Category> findAll();
    @Select("SELECT * FROM `vueshop_category` WHERE id=#{id}")
    Category findByid(int id);
    @Select("DELETE FROM `vueshop_category` WHERE id=#{id}")
    void deleteById(int id);

    void save(Category category);

    void update(Category category);
}
